home *** CD-ROM | disk | FTP | other *** search
- Instructions
- for
- Modifying EMAZE.PAS and SMAZE.PAS
- to Use the
- IBM Personal Computer Graphics Printer Model 5152
-
- EMAZE.PAS and SMAZE.PAS were written to run with an Epson MX-80
- printer. Although the IBM Personal Computer Graphics Printer uses the
- same enclosure, it does not use the same escape sequences. This
- document explains how to convert EMAZE.PAS and SMAZE.PAS to run with the
- IBM printer. Each escape sequence used by the programs is explained;
- this document may help you convert the programs to use other printers.
-
- On the Epson MX-80, "WRITE(LST,CHR(27)); WRITE(LST,'@');" does a
- "power on" reset and sets the top of form. On the IBM Personal Computer
- Graphics Printer, use "WRITE(LST,CHR(27); WRITE(LST,'4');". This only
- sets the top of form; you may have to turn your printer off and on after
- setting your page at top of form.
-
- On the Epson, "WRITE(LST,CHR(27)); WRITE(LST,'2');" sets the line
- spacing to the default of 1/6". "WRITE(LST,CHR(27)); WRITE(LST,'A');
- WRITE(LST,CHR(12)); WRITE(LST,CHR(27)); WRITE(LST,'2');" will do this on
- the IBM.
-
- On the Epson, "WRITE(LST,CHR(27)); WRITE(LST,'A');
- WRITE(LST,CHR(8));" will set the line spacing to 8/72". On the IBM, you
- must follow it by "WRITE(LST,CHR(27)); WRITE(LST,'2');" to make it take
- effect.
-
- The other escape sequences used by EMAZE.PAS and SMAZE.PAS remain
- the same. The sequence "WRITE(LST,CHR(27)); WRITE(LST,'K');
- WRITE(LST,CHR(224)); WRITE(LST,CHR(1));" sets the dots graphics mode to
- 480 dots per 8 inches and tells the printer to expect 224+1*256 (480)
- bytes of data. (The printers print 8 rows of dots at a time.)
- "WRITE(LST,CHR(12));" causes the printer to do a page feed.
-
- Good luck!